package com.canbot.u05.bean.codeMarketing;

import java.util.ArrayList;
import java.util.List;

/**
 * @author zmp
 * 二维码营销数据
 */
public class CodeMarketingInfo {

        public static final int TYPE_FREEDOM = 0;

        public static final int TYPE_COUNT_ONE = 1;

        public static final int TYPE_COUNT_TWO = 2;

        public static final int TYPE_COUNT_THREE = 3;

        private int type;

        private String title;

        private String voiceContent;

        private int voiceType;

        private long interval;

        public int getBgResourcesIndex() {
                return bgResourcesIndex;
        }

        public void setBgResourcesIndex(int bgResourcesIndex) {
                this.bgResourcesIndex = bgResourcesIndex;
        }

        private int bgResourcesIndex;

        public CodeMarketingInfo(int type, String title, String voiceContent, int voiceType, long interval, int bgResourcesIndex,
                                 List<String> imagePaths, CodeInfo codeInfo1, CodeInfo codeInfo2, CodeInfo codeInfo3) {
                this.type = type;
                this.title = title;
                this.voiceContent = voiceContent;
                this.voiceType = voiceType;
                this.interval = interval;
                this.bgResourcesIndex = bgResourcesIndex;
                this.imagePaths = imagePaths;
                this.codeInfo1 = codeInfo1;
                this.codeInfo2 = codeInfo2;
                this.codeInfo3 = codeInfo3;
        }

        public List<String> getImagePaths() {
                return imagePaths;
        }

        public void setImagePaths(List<String> imagePaths) {
                this.imagePaths = imagePaths;
        }

        private List<String> imagePaths;

        private CodeInfo codeInfo1;

        private CodeInfo codeInfo2;

        private CodeInfo codeInfo3;

        public CodeInfo getCodeInfo1() {
                if (codeInfo1 == null) {
                        codeInfo1 = new CodeInfo();
                }
                return codeInfo1;
        }

        public void setCodeInfo1(CodeInfo codeInfo1) {
                this.codeInfo1 = codeInfo1;
        }

        public CodeInfo getCodeInfo2() {
                if (codeInfo2 == null) {
                        codeInfo2 = new CodeInfo();
                }
                return codeInfo2;
        }

        public void setCodeInfo2(CodeInfo codeInfo2) {
                this.codeInfo2 = codeInfo2;
        }

        public CodeInfo getCodeInfo3() {
                if (codeInfo3 == null) {
                        codeInfo3 = new CodeInfo();
                }
                return codeInfo3;
        }

        public void setCodeInfo3(CodeInfo codeInfo3) {
                this.codeInfo3 = codeInfo3;
        }

        public CodeMarketingInfo() {

        }

        public CodeMarketingInfo(int type, String title) {
                this.type = type;
                this.title = title;
        }

        public CodeMarketingInfo(int type, String title, String voiceContent, int voiceType, long interval) {
                this.type = type;
                this.title = title;
                this.voiceContent = voiceContent;
                this.voiceType = voiceType;
                this.interval = interval;
        }


        public int getType() {
                return type;
        }

        public void setType(int type) {
                this.type = type;
        }

        public String getTitle() {
                return title;
        }

        public void setTitle(String title) {
                this.title = title;
        }

        public String getVoiceContent() {
                return voiceContent;
        }

        public void setVoiceContent(String voiceContent) {
                this.voiceContent = voiceContent;
        }

        public int getVoiceType() {
                return voiceType;
        }

        public void setVoiceType(int voiceType) {
                this.voiceType = voiceType;
        }

        public long getInterval() {
                return interval;
        }

        public void setInterval(long interval) {
                this.interval = interval;
        }

        public static class CodeInfo {

                private String codeData;

                private String codeTitle;

                public CodeInfo() {
                }

                public CodeInfo(String codeData, String codeTitle) {
                        this.codeData = codeData;
                        this.codeTitle = codeTitle;
                }

                public String getCodeData() {
                        return codeData;
                }

                public void setCodeData(String codeData) {
                        this.codeData = codeData;
                }

                public String getCodeTitle() {
                        return codeTitle;
                }

                public void setCodeTitle(String codeTitle) {
                        this.codeTitle = codeTitle;
                }
        }

}
